package org.lgiavedoni.android.franq.event;

import lombok.AllArgsConstructor;
import lombok.Data;

import org.lgiavedoni.android.franq.core.bean.SMS;
import org.lgiavedoni.android.franq.core.calendar.CalendarEvent;
import org.lgiavedoni.android.franq.core.calendar.CalendarEventImp;
import org.lgiavedoni.android.franq.core.calendar.RegisterCalendarEvent;
import org.lgiavedoni.android.franq.core.envent.Event;
@Data
@AllArgsConstructor
public class SMSFromEvent extends Event implements RegisterCalendarEvent {

	private final SMS sms;

	@Override
	public CalendarEvent toCalendarEvent() {
		return new CalendarEventImp("SMS [" + sms.getFromText() + "]", "Sms from: " + sms.getFrom() + ", text: " + sms.getText(), getCreationDate());
	}

}
